class CreateThoughts < ActiveRecord::Migration
  def self.up
    create_table :thoughts do |t|
      t.string :summary, :null => false
      t.text :body
      t.integer :author_id, :default => nil
      t.integer :parent_id, :default => nil
      t.integer :response_count, :default => 0 
      t.integer :view_count, :default => 0
      t.timestamps
    end
  end

  def self.down
    drop_table :thoughts
  end
end
